SRCS = board.cpp resources.cpp main.cpp
OBJS = $(SRCS:.cpp=.o)
CFLAGS = $$(sdl-config --cflags) -Wall

all: test

test: $(OBJS)
	\g++ -o $@ $^ $$(sdl-config --libs) -lSDL_image
	\rm -f *.gch
.cpp.o:
	\g++ -c $^ $(CFLAGS)

clean:
	\rm -f *.o *.gch test

depend:
	\makedepend -Y $(SRCS)
	\rm Makefile.bak

# AUTOMATIC DEPENDENCIES
# DO NOT DELETE

board.o: board.h resources.h
resources.o: resources.h
main.o: resources.h board.h
